import {
  applyMiddleware,
  createStore,
  combineReducers
} from "redux";
import countReducer from "./reduces/countReducer"
import movieReducer from "./reduces/movieReducer"

import thunk from 'redux-thunk'


const allReducer = combineReducers({
  count: countReducer,
  movie: movieReducer
})
console.log("store调用了");

//创建store 并提供对应的reducer
const store = createStore(allReducer, applyMiddleware(thunk));

export default store;